//
//  HMTestViewController.swift
//  Weibo
//
//  Created by Apple on 2017/7/21.
//  Copyright © 2017年 KY. All rights reserved.
//

import UIKit

class HMTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        setupPushButton()
    }
    
    
    //  设置导航栏push按钮
    private func setupPushButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    
    //  push操作
    @objc private func pushAction() {
        let testVC = HMTestViewController()
        self.navigationController?.pushViewController(testVC, animated: true)
    }

   

}
